package com.jhy.study2.entity;

public class Cat {
    private String catName;
    private int catAge;

    public Cat(){}
    public Cat(String name, int age){
        this.catName = name;
        this.catAge = age;
    }


    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Cat{");
        sb.append("catName='").append(catName).append('\'');
        sb.append(", catAge=").append(catAge);
        sb.append('}');
        return sb.toString();
    }

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName;
    }

    public int getCatAge() {
        return catAge;
    }

    public void setCatAge(int catAge) {
        this.catAge = catAge;
    }
}
